﻿namespace dogd
{
	using System;

	/// <summary>
	/// Declares a class to be mapped to a database table.
	/// </summary>
	[AttributeUsage(AttributeTargets.Class)]
	public sealed class TableAttribute : Attribute
	{
		/// <summary>
		/// Initialize with the table name
		/// </summary>
		/// <param name="tableName"></param>
		public TableAttribute(string tableName)
			: base()
		{
			this.TableName = tableName;
		}

		/// <summary>
		/// The name of the database table
		/// </summary>
		public string TableName
		{
			get;
			private set;
		}
	}
}
